package com.xiaozhichao.javaapi.designpattern.factory.multiple;

import com.xiaozhichao.javaapi.designpattern.factory.MailSender;
import com.xiaozhichao.javaapi.designpattern.factory.Sender;
import com.xiaozhichao.javaapi.designpattern.factory.SmsSender;

/**
 * 多个工厂方法
 */
public class MultipleFactory {

    public Sender smsProduce(){
        return new SmsSender();
    }

    public Sender mailProduce(){
        return new MailSender();
    }
}
